package com.sure.yyr.info.customer.dao;

import com.sure.yyr.info.customer.Customer;
import com.sure.yyr.info.customer.CustomerDto;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.springframework.web.bind.annotation.DeleteMapping;

import java.util.List;

public interface CustomerDao {
    List<Customer> findCustomerList(CustomerDto dto);

    @Insert("insert into info_customer(cus_id,cus_name,cus_remark) values(#{cus_id},#{cus_name},#{cus_remark})")
    void insertCustomer(CustomerDto dto);

    @Delete("delete from info_customer where cus_id = #{cusid}")
    void deleteCustomer(Integer id);
}
